<template>
  <vol-box
    :lazy="true"
    v-model="model"
    :title="$ts('执行日志')"
    :height="500"
    :width="1200"
    :padding="0"
  >
    <QuartzLog ref="log"></QuartzLog>
    <template #footer>
      <div>
        <el-button
          type="default"
          size="mini"
          @click="model = false"
        >{{$ts('关闭')}}</el-button>
      </div>
    </template>
  </vol-box>
  <el-alert
    style="margin-bottom:10px;"
    :show-icon="false"
    type="success"
  >
    {{$ts('定时任务只有发布后才会运行(本地不会执行)')}}
  </el-alert>
</template>
<script>
import VolBox from "@/components/basic/VolBox.vue";
import QuartzLog from "@/views/system/quartz/Sys_QuartzLog";
//这里使用的vue2语法，也可以写成vue3语法
export default {
  components: { "vol-box": VolBox, QuartzLog },
  data() {
    return {
      model: false,
    };
  },
  methods: {
    open() {
      this.model = true;
      this.$nextTick(() => {
        this.$refs.log.$refs.grid.search();
      });
    },
  },
};
</script>
